﻿using System.ComponentModel.DataAnnotations;
using System.Xml.Linq;

namespace MvcCart.Models
{
    public class Cart
    {
        public int Cartid { get; set; }//购物车id

        [Display(Name = "商品id")]
        public string? Productid { get; set; }//商品id

        [Display(Name = "商品数量")]
        public int Productnum { get; set; }//商品数量

        [Display(Name = "商品价格")]
        [DataType(DataType.Currency)]
        public decimal Price { get; set; }//商品价格

        [Display(Name = "用户id")]
        public string? Userid { get; set; }//用户id

        [Display(Name = "创建时间")]
        [DataType(DataType.Date)]
        public DateTime Createtime { get; set; }//创建时间
    }
}
